package com.example.dessertstoressm.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("item")
public class Item implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = -2159121673445254631L;

    private String itemId;
    private String productId;
    private BigDecimal listPrice;
    private BigDecimal unitCost;
    @TableField(value="supplier")
    private int supplierId;
    private String status;
    @TableField(value="attr1")
    private String attribute1;
    @TableField(value="attr2")
    private String attribute2;
    @TableField(value="attr3")
    private String attribute3;
    @TableField(value="attr4")
    private String attribute4;
    @TableField(value="attr5")
    private String attribute5;

    @TableField(exist = false)
    private Product product = new Product();
    @TableField(exist = false)
    private int quantity;

}
